package pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {
    private Integer id;
    private String studentNum;
    private String studentName;
    private String gender;
    private Integer age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private Integer classId;
    private Integer hostelId;
    private String phone;
    private String homeAddress;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    public Student(){

    }
    public Student(Integer id, String studentNum, String studentName, String gender, Integer age, Date birthday, Integer classId,  String phone,  String homeAddress){
        this.id = id;
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.phone = phone;
        this.homeAddress = homeAddress;
    }
    public Student(String studentNum, String studentName, String gender, Integer age, Date birthday, Integer classId,  String phone, String homeAddress) {
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.phone = phone;
        this.homeAddress = homeAddress;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }




}